package com.deprice4u_client.products_on_sale;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.util.Log;

import com.deprice4u_client.R;

public class SearchResult extends FragmentActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.search_result);
		
		Intent intent = getIntent();
		String queryKeyword = intent.getStringExtra("queryKeyword");

		Log.i("SM", "SearchResult 1");
		if (savedInstanceState == null) {
			Log.i("SM", "SearchResult 2");

			// During initial setup, plug in the details fragment.
			SocialListViewActivity results = new SocialListViewActivity(queryKeyword);
			results.setArguments(getIntent().getExtras());
			getSupportFragmentManager().beginTransaction()
					.add(android.R.id.content, results).commit();
		}

	}
}
